# -*- coding: utf-8 -*-

"""
@author: david
@software: PyCharm
@file: mythread.py
@time: 2021/9/22 11:14
"""
import threading
import wx


class MyThread(threading.Thread):
    def __init__(self, window):
        """设置需要多线程运行的程序"""
        threading.Thread.__init__(self)
        # self.func = func
        # self.e = e
        self.window = window

    def run(self):
        # print("开启线程： ")
        wx.CallAfter(self.window.hook)
        # time.sleep(3)
